package com.lql.common.enums;

/**
 * @Title:
 * @Description:
 * @Author: longge
 * @Date: 2020/10/16
 * @Version: V1.0
 */
public enum  RecordTypeEnum {
    /**
     * 缴费类型：1充值记录，2=普通消费/扣款，3人工手动充值
     */
    RECHARGE(1), CONSUME(2), MANUAL(3);

    RecordTypeEnum(Integer status) {
        this.type = status;
    }

    private Integer type;

    public Integer getType() {
        return type;
    }


    public static RecordTypeEnum getType(Integer type) {
        if (null == type) {
            return null;
        }
        for (RecordTypeEnum v : values()) {
            if (v.getType().equals(type)) {
                return v;
            }

        }
        return null;
    }
}
